package com.icss.th.db;

import java.sql.Connection;

/**
 * 数据连接类
 * @author CSI-peijn
 *
 */
public class DBConnection 
{
	private static final ThreadLocal<Connection> connThreadLocal =  new ThreadLocal<Connection>();
	
	public static void setConnection(Connection conn)
	{
		connThreadLocal.set(conn);
	}
	
	public static Connection getConnection()
	{
		return connThreadLocal.get();
	}
}
